package com.shn.zk.producer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.UUID;
/**
 * @author jianghaoqiang
 * @Date 2023/1/8
 */
@RestController
public class ZKController {
    @Value("${server.port}")

    private String serverPort;


    @RequestMapping("/zk/list")

    public String zk() {

        return "springcloud with zookeeper: "+serverPort+"\t"+ UUID.randomUUID().toString();

    }

}
